13.3 Gradle
1 | To learn about using Spring Boot with Gradle, please refer |
学习在Spring Boot中使用Gradle请转到如下Spring Boot的Gradle插件关联文档中:
(https://docs.spring.io/spring-boot/docs/2.1.0.BUILD-SNAPSHOT/gradle-plugin/reference/html/)
13.4 Ant
1 | It is possible to build a Spring Boot project using Apache Ant+Ivy. |
您同样可以使用Apache的Ant配合Ivy去构建Spring Boot工程。spring-boot-antlib 的“AntLib”模块同样可以帮助Ant创建可执行的jars包。
声明依赖,一个典型的ivy.xml文件如下:1
2
3
4
5
6
7
8
9
10
11<ivy-module version="2.0">
<info organisation="org.springframework.boot" module="spring-boot-sample-ant" />
<configurations>
<conf name="compile" description="everything needed to compile this module" />
<conf name="runtime" extends="compile" description="everything needed to run this module" />
</configurations>
<dependencies>
<dependency org="org.springframework.boot" name="spring-boot-starter"
rev="${spring-boot.version}" conf="compile" />
</dependencies>
</ivy-module>
1 | A typical build.xml looks like the following example: |
一个典型的build.xml如下:
1 | <project |
1 | If you do not want to use the spring-boot-antlib module, |
如果您不想使用spring-boot-antlib模块,请直接看章节86.9“Build an Executable Archive from Ant without Using spring-boot-antlib”